<?php
/* header("Pragma: public");
header("Expires: 0");
header("Accept-Ranges: bytes");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Content-Type: application/vnd.ms-word");
header('Content-Disposition: attachment; filename=abiturientsabc.doc');
header("Content-Transfer-Encoding: binary"); */

foreach ($abiturientslist as $facultetlist):
?>
<h4>
	Уровень образования
	<?php 
	echo $educationlevels[$facultetlist['edulevel']];?> 
	Специальность 
	<?php echo $professions[$facultetlist['profession']];?>, 
	Форма обучения 
	<?php echo $learningforms[$facultetlist['learnigform']];?>, 
	Тип обучения 
	<?php echo $learningtypes[$facultetlist['learnigtype']];?>
</h4>

<?php 
	if (!empty($facultetlist['abiturients'])){
		echo '<table>';
		foreach ($facultetlist['abiturients'] as $abiturient):
/* 		if ($abiturient['Abiturient']['educationdoctype_id'] == 7) {
			continue;
		} */
		echo '<tr>';
		echo '<td>';
		//echo $abiturient['Abiturient']['lastname'].' '.$abiturient['Abiturient']['firstname'].' '.$abiturient['Abiturient']['surname'];
		echo $abiturient;
		echo '</td>';
		echo '</tr>';
		endforeach;
		echo '</table>';		
	}
	endforeach;
?>